
function Massage(ImgSrc,Hint,Keep,Urles) {
    var dom = "<div class='Popout'>" +
        "<div class='PopoutBox'>" +
        " <img src=''>" +
        "<div class='Popout-title'>" +Hint+
        "</div>" +
        "</div>" +
        "</div>";

    if(ImgSrc == 1){
        //成功提示
        $("body").append(dom);
        $(".PopoutBox img").attr('src','image/chenggong.png');
    }else if (ImgSrc == 2){
        //失败提示
        $("body").append(dom);
        $(".PopoutBox img").attr('src','image/shibai.png');
    }else if(ImgSrc == 3){
        //加载
        $("body").append(dom);
        $(".PopoutBox img").attr('src','image/2018.gif');
    }
    var times  = setTimeout(function () {
        clearTimeout(times);
        $(".Popout").remove();
        if(Urles){
            window.location.href = Urles;
        }

    },Keep);
}

function Loading(Hint,Keep,Urles) {
    var dom = "<div class='Popout'>" +
        "<div class='PopoutBox'>" +
        " <img src='image/2018.gif'>" +
        "<div class='Popout-title'>" +Hint+
        "</div>" +
        "</div>" +
        "</div>";
    if(Keep == true){
        //加载
        $("body").append(dom);
    }else if(Keep == false) {
        $(".Popout").remove();
        if(Urles){
            window.location.href = Urles;
        }
    }
}

//带确定和取消的弹框
function SpringBlk(Hints,Can,Aff,Urles) {
    var dom = "<div class='Popout'>" +
        "<div class='PopoutBox'>" +
        "<img src='image/shibai.png'>" +
        "<div class='Popout-title'>" +Hints+
        "</div>" +
        "<div class='choose'><div class='cancel' id='cancel'>"+Can+"</div><div class='affirm' id='affirm' >"+Aff+"</div></div>" +
        "</div>" +
        "</div>";
    $("body").append(dom);
    $("#cancel").on('click',function () {
        $(".Popout").remove();
    });
    $("#affirm").on('click',function () {
        if(Urles){
            window.location.href = Urles;
        }
    })
}
//带确定和取消的弹框
function Paies(Hints,Can,Aff,Urles) {
    var dom = "<div class='Popout'>" +
        "<div class='PopoutBox'>" +
        "<img src=''>" +
        "<div class='Popout-title'>" +Hints+
        "</div>" +
        "<div class='chooses'><div class='cancel' id='cancel'>"+Can+"</div><div class='affirm' id='affirm' >"+Aff+"</div></div>" +
        "</div>" +
        "</div>";
    if(ImgSrc == 1){
        //成功提示
        $("body").append(dom);
        $(".PopoutBox img").attr('src','image/chenggong.png');
    }else if (ImgSrc == 2){
        //失败提示
        $("body").append(dom);
        $(".PopoutBox img").attr('src','image/shibai.png');
    }else if(ImgSrc == 3){
        //加载
        $("body").append(dom);
        $(".PopoutBox img").attr('src','image/2018.gif');
    }
    $("#cancel").on('click',function () {
        $(".Popout").remove();
    });
    $("#affirm").on('click',function () {
        if(Urles){
            window.location.href = Urles;
        }
    })
}
